﻿using System;

namespace Fortune.Attributes.API
{
    /// <summary>
    /// API请求方法注解
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class RequestMappingAttribute : Attribute
    {
        public RequestMappingAttribute(string url, bool enable = true)
        {
            this.url = url;
            this.enable = enable;
        }
        /// <summary>
        /// 请求地址
        /// </summary>
        public string url { get; }
        /// <summary>
        /// 是否启用接口
        /// </summary>
        public bool enable { get; }
    }
}